﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace YXChatFormClient.Utility
{
    /// <summary>
    /// 重绘帮助类
    /// </summary>
    public class PaintHelper
    {
        public static void PaintBorder(PaintEventArgs e, Rectangle rectangle, Color leftColor, Color topColor, Color rightColor, Color bottomColor)
        {
            ControlPaint.DrawBorder(e.Graphics, rectangle,
                leftColor, 1, ButtonBorderStyle.Solid, //左边
                topColor, 1, ButtonBorderStyle.Solid, //上边
                rightColor, 1, ButtonBorderStyle.Solid, //右边
                bottomColor, 1, ButtonBorderStyle.Solid);//底边
        }
    }
}
